package com.tyust.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Staff {
	public String staffNo;
	public String staffName;
	public String gender;
	public String idCard;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	public Date birthDate;
	public String address;
	public String phone;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	public Date entryDate;
	public String job;
	private int limit;
	private int page;
	private int start;
	
	private String entryDateStr;
	private String birthDateStr;
	
	
	public void setStart(int start) {
		this.start = start;
	}
	public String getEntryDateStr() {
		return entryDateStr;
	}
	public void setEntryDateStr(String entryDateStr) {
		this.entryDateStr = entryDateStr;
	}
	public String getBirthDateStr() {
		return birthDateStr;
	}
	public void setBirthDateStr(String birthDateStr) {
		this.birthDateStr = birthDateStr;
	}
	public int getStart() {
		return (page-1)*limit;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public String getStaffNo() {
		return staffNo;
	}
	public void setStaffNo(String staffNo) {
		this.staffNo = staffNo;
	}
	public String getStaffName() {
		return staffName;
	}
	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public Date getBirthDate() {
		return birthDate;
	}
	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Date getEntryDate() {
		return entryDate;
	}
	public void setEntryDate(Date entryDate) {
		this.entryDate = entryDate;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}

}
